<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../assets/js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<jspang></jspang>
			
		</div>
		<div id="pana">
			<jspang></jspang>
			<jspan></jspan>
		</div>
		<script>
			Vue.component("jspang",{
				template:'<div style="color: red;">我是全局的jspang标签</div>'
			})
			var app = new Vue({
				el:"#app"
			})
			var pana = new Vue({
				el:"#pana",
				components:{
					"jspan":{
						template:'<div style="color: green;">我是局部的jspan标签</div>'
					}
				}
			})
		</script>
	</body>
</html>
